#@datagrid()
#define content_header()
<h1>
    普通用户管理
    <small>member tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">代理</a></li>
    <li class="active">普通用户管理</li>
</ol>
#end
#define content()
<div class="box">
    <div class="box-header">
        <ul class="nav nav-tabs">
            <li><a href="/member">有昵称</a></li>
            <li class="active"><a href="/member/unsubscrible">无昵称</a></li>
        </ul>
        <form class="form-inline" action="/member/unsubscrible/1">
            <div class="form-group">
                <label>注册时间</label>
                <input type="text" name="date1" class="form-control input-sm xsui-jedatepicker" placeholder="起始时间..." title="" value="#(date1??)">
                 - 
                <input type="text" name="date2" class="form-control input-sm xsui-jedatepicker" placeholder="终止时间..." title="" value="#(date2??)" style="margin-right:10px">
            </div>
            <div class="form-group">
                <label>会员ID/昵称</label>
                <input type="text" name="word" class="form-control input-sm" placeholder="会员ID/昵称.." title="会员ID" value="#(search_word)">
            </div>
            <button type="submit" class="btn btn-sm btn-primary">搜索</button>
        </form>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <div class="xsui-datagrid-info">共<span class="text-danger">#(listPage.getTotalRow())</span>条</div>
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>用户ID</th>
                    <th>账户余额</th>
                    <th>手机号</th>
                    <th>累计提现金额</th>
                    <th>累计充值金额</th>
                    <th>一级下线</th>
                    <th>二级下线</th>
                    <th>注册时间</th>
                </tr>
            </thead>
            <tbody>
                #for(x : listPage.getList())
                <tr data-key="#(x.user_id)">
                    <td>#(x.user_id)</td>
                    <td>#(x.blance)</td>
                    <td>#(x.mobile)</td>
                    <td>#(x.withdraw_amount_total)</td>
                    <td>#(x.recharge_amount_total)</td>
                    <td><!-- 一级下线 -->
                        #if(x.child1_all_count != 0)
                        <a href="/member/child1?user_id=#(x.user_id)">#(x.child1_all_count)</a>
                        #else
                        #(x.child1_all_count)
                        #end
                    </td>
                    <td><!-- 二级下线 -->
                        #if(x.child2_all_count != 0)
                        <a href="/member/child2?user_id=#(x.user_id)">#(x.child2_all_count)</a>
                        #else
                        #(x.child2_all_count)
                        #end
                    </td>
                    <td>#(x.regist_time)</td>                
                </tr>
                #end
            </tbody>
        </table>
        #@paginate(listPage.pageNumber, listPage.totalPage, "/member/unsubscrible/")
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
#end
#define body_foot()
<!-- lightbox2 -->
<script src="/skin/ui/plugins/lightboxlib/lightbox2/js/lightbox.min.js"></script>
#end